package org.contato.service.impl;

import org.contato.dao.ContatoDAO;
import org.contato.entity.Contato;
import org.contato.service.ContatoService;
import org.sharkness.business.support.ModelServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@SuppressWarnings("serial")
@Service(value = "contatoService")
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class ContatoServiceImpl extends ModelServiceImpl<Contato, ContatoDAO> implements ContatoService {

	@Autowired
	public void setContatoDAO(ContatoDAO contatoDAO) {
		this.setDefaultDAO(contatoDAO);
	}

}